<extend name="Base/base" />
<block name='head'>
    <link rel="stylesheet" href="/Public/Admin/css/personal.css"/>
    <style>
        .layui-form .layui-form-item label.layui-form-label{width:190px}
        .layui-input, .layui-textarea{width:90%}
    </style>
</block>
<block name="content"> 
    <section class="layui-larry-box">
        <div class="larry-personal">
            <div class="layui-tab">
                <blockquote class="layui-elem-quote news_search">
                    <div class="layui-inline">
                        <a class="layui-btn layui-btn-normal newsAdd_btn" href="{:U('Index/app')}">返回</a>
                    </div>
                </blockquote>

                <!-- 表单项 -->
                <form class="layui-form" id="form-admin-add">
                    <div class="layui-form-item">
                        <label class="layui-form-label">应用名称</label>
                        <div class="layui-input-block">
                            <input type="text" name="webname" class="layui-input" value="{$info.webname}">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">网址</label>
                        <div class="layui-input-block">
                            <input type="text" name="web_urls" class="layui-input" value="{$info.web_urls}">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">企业id</label>
                        <div class="layui-input-block">
                            <input type="text" name="wx_corpid" class="layui-input" value="{$info.wx_corpid}">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">应用Id</label>
                        <div class="layui-input-block">
                            <input type="text" name="wx_agentid" class="layui-input" value="{$info.wx_agentid}">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">应用secret</label>
                        <div class="layui-input-block">
                            <input type="text" name="wx_appsecret" class="layui-input" value="{$info.wx_appsecret}">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">Tokey<br/>(api接收消息token)</label>
                        <div class="layui-input-block">
                            <input type="text" name="token" class="layui-input" value="{$info.token}">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">aeskey<br/>(api接收消息密钥)</label>
                        <div class="layui-input-block">
                            <input type="text" name="aeskey" class="layui-input" value="{$info.aeskey}">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block button">
                            <input type='hidden' name='id' value='{$info.id}'>
                            <a class="layui-btn btn-submit ajax-post" data-url="{:U('appSave',array('id'=>$info[id]))}" data-form="">提交</a>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                </form>
                <!-- 完 -->
            </div>
        </div>
    </section>
</block>
<block name="script">
    <script type="text/javascript" src="/Public/Admin/js/common.js"></script>
    <script type="text/javascript">
    </script>    
</block>

